 function fire_ajax_submit(formId,realInput,loudingId,editImgId,index) {
        // Get form
        var form = $(formId)[0];
        var data = new FormData(form);
        data.append("index",index);
        $.ajax({
            type: "POST",
            enctype: 'multipart/form-data',
            url: "/abd/multi",
            data: data,
            beforeSend: function(xhr){
            	$(loudingId).anzeLoading();
            },
            //http://api.jquery.com/jQuery.ajax/
            //http://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects
            processData: false, //prevent jQuery from automatically transforming the data into a query string
            contentType: false,
            cache: false,
            timeout: 600000,
            success: function (data) {
                $(loudingId).anzeLoading("hide");
                $(editImgId).attr("src", "/abd/images?filename="+data);
                $(realInput).attr("value",data);
            },
            error: function (e) {
                $(loudingId).anzeLoading("hide");
                console.log("ERROR : ", e);

            }
        });
 }
 
 